﻿using System;
class TimerConfig
{
    private int timer_interval = 0;
    public static int OneMininutePerSecond = 1000 * 60;

    public int Timer_interval{
        get { return timer_interval; }
        set { timer_interval = value; }
    }
    public TimerConfig(int interval_min){
        this.timer_interval = interval_min * TimerConfig.OneMininutePerSecond;
    }
    public TimerConfig(){
        string interval = System.Configuration.ConfigurationSettings.AppSettings["TimerInterval"];
        Exception ex = new AppSettingsException("TimerInterval");
        if (string.IsNullOrEmpty(interval))
        {
            
            int int_interval;
            try
            {
                int_interval = int.Parse(interval);
            }
            catch
            {
                throw ex;
            }
        }
        else
        {
            throw ex;
        }
        
    }
}